package com.report.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.report.dto.response.DownloadReportRes;
import com.report.service.DownloadReportService;
import com.zmh.framework.sys.dto.request.common.PageResponseDTO;
import com.zmh.framework.util.Result;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author summer
 * @version 1.0
 * @date 2024/7/31 09:08
 * 下载
 */
@RestController
@RequestMapping(value = "/webMemberDownload")
@AllArgsConstructor
public class WebMemberDownloadController {

    private final DownloadReportService downloadReportService;

    @PostMapping(value = "/lists")
    public Result<Page<DownloadReportRes>> lists(@RequestBody PageResponseDTO pageResponseDTO){
        Page<DownloadReportRes> page= downloadReportService.lists(pageResponseDTO);
        return Result.successResult(page);
    }


}
